package com.ruoyi.system.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 区域对象 l_region
 *
 * @author zyb
 * @date 2022-01-03
 */
public class LRegion extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    @TableId(value = "areaid", type = IdType.AUTO)
    private Long areaid;

    /** 行政区划代码 */
    @Excel(name = "行政区划代码")
    private String code;

    /** 城市 */
    @Excel(name = "城市")
    private String city;

    /** 县区 */
    @Excel(name = "县区")
    private String county;

    /** 乡镇 */
    @Excel(name = "乡镇")
    private String town;

    /** 村 */
    @Excel(name = "村")
    private String village;

    /** 停用 */
    @Excel(name = "停用")
    private Long closed;

    public void setAreaid(Long areaid)
    {
        this.areaid = areaid;
    }

    public Long getAreaid()
    {
        return areaid;
    }
    public void setCode(String code)
    {
        this.code = code;
    }

    public String getCode()
    {
        return code;
    }
    public void setCity(String city)
    {
        this.city = city;
    }

    public String getCity()
    {
        return city;
    }
    public void setCounty(String county)
    {
        this.county = county;
    }

    public String getCounty()
    {
        return county;
    }
    public void setTown(String town)
    {
        this.town = town;
    }

    public String getTown()
    {
        return town;
    }
    public void setVillage(String village)
    {
        this.village = village;
    }

    public String getVillage()
    {
        return village;
    }
    public void setClosed(Long closed)
    {
        this.closed = closed;
    }

    public Long getClosed()
    {
        return closed;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("areaid", getAreaid())
            .append("code", getCode())
            .append("city", getCity())
            .append("county", getCounty())
            .append("town", getTown())
            .append("village", getVillage())
            .append("closed", getClosed())
            .append("remark", getRemark())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .append("updateTime", getUpdateTime())
            .append("updateBy", getUpdateBy())
            .toString();
    }
}
